home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group94b.txt
/
000046_icon-group-sender _Tue Sep 6 08:57:38 1994.msg
< prev
next >
Wrap
Internet Message Format
|
1995-02-09
|
3KB
Received: by cheltenham.cs.arizona.edu; Tue, 6 Sep 1994 11:46:15 MST
Date: Tue, 06 Sep 1994 08:57:38 -0600 (CST)
From: Chris Tenaglia | 456-8765 <TENAGLIA@MIS.MCW.EDU>
Subject: Re: Use of Icon to process WWW output
To: m.datko@ic.ac.uk
Cc: icon-group@cs.arizona.edu
Message-Id: <01HGSB1KMOAA8WWKFN@mis.mcw.edu>
Organization: Medical College of Wisconsin (Milwaukee, WI)
X-Vms-To: IN%"m.datko@ic.ac.uk"
X-Vms-Cc: IN%"icon-group@cs.arizona.edu"
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-Transfer-Encoding: 7BIT
Errors-To: icon-group-errors@cs.arizona.edu
I've had to write an intercepter for downloads. For some reason
files download with a # prepended to the filename. I also want the
file to end up in a certain holding tank. Maybe I could have done
this better if I knew my mosaic.ini better. The module I wrote so
far is xfer.icn and here's what it looks like:
#######################################################################
# file : xfer.icn
# desc : disguised copy command because DOS doesn't have a COPY.EXE
# use : do xfer file destination
#
# update by what
# 12-aug-1994 tenaglia initial write
#
procedure main(param)
source := param[1]
target := param[2]
command:= "COPY " || source || " " || target || "\\" || source[2:0]
write("Performing => ",command)
input("Press <ENTER> to continue.")
system(command)
end
procedure input(prompt)
writes(prompt)
return read()
end
########################################################################
Then in mosaic.ini I made the following changes:
under [Viewers]
TYPE7="binary/download"
binary/download="c:\bin59\iconx.exe c:\bin59\xfer %ls \tmp\hold"
under [Suffixes]
binary/download=.zip,.lzh,.com,.exe,.arc,.Z
Note: I'm using icon v5.9 because of memory problems in my environment.
Chris Tenaglia (System Manager) | Medical College of Wisconsin
8701 W. Watertown Plank Rd. | Milwaukee, WI 53226
(414)456-8765 | tenaglia@mis.mcw.edu
> From: IN%"m.datko@ic.ac.uk" 5-SEP-1994 14:42:57.97
> To: IN%"icon-group-l@cs.arizona.edu"
> Subj: Use of Icon to process WWW output
> I would be interested to hear if anyone is using icon to process
> material 'received' from html form output.
> I have colleagues who are using C and Perl to do this but given my
> familiarity with the string processing in Icon, I would like to use
> it to do the job.
> Has anybody done this ! I'm a novice when it comes to html and WWW
> so 'newbie' replies welcome !
> Mark Datko
> Computer Officer
> Department of Mathematics IC